import random
a = random.randint(1,100)
for i in range(5):
    num=int(input('请输入你猜的数字：'))
    if num > a:
        print('too big,你还剩余"%d"' %(4-i))
    elif num == a :
        print('恭喜中奖')
        exit()
    elif num < a :
        print('too small,你还剩余"%d"' %(4-i))
print('你要猜的数字是"%a"，没猜中吧' %a)
exit()



card = int(getpass.getpass("请输入数字："))
print(type(card))
while True
    if count < 3
       user_guess = int(input("请猜一猜："))
       if card == user_guess:
         print("恭喜你。")
         break
       elif card > user_guess:
         print("往大猜")
       else:
         print("太大了")
    else:
    count = count+1